package gui2.g1;

import java.util.List;

import javax.swing.DefaultListModel;

public class ChatListModel extends DefaultListModel implements ChatListener{

	@Override
	public void messageAdded(List<ChatMessage> messages) {
		addElement(messages.get(messages.size()-1));
	}

	
}
